package com.itheima.service;

import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {
    Member findByTelephone(String telephone);

    int add(Member member);

    /**
     * 注册会员，判断当前用户是否为会员,不是会员就注册
     *
     * @param telephone
     * @return
     */
    Member register(String telephone);

    Map<String, List> getMemberReport();
}
